﻿
using Microsoft.AspNetCore.SignalR;

namespace Peng.Api.Hubs
{
    /// <summary>
    /// Signalr 处理
    /// </summary>
    public class Myhub : Hub
    {
        /// <summary>
        /// 测试
        /// </summary>
        /// <returns></returns>
        public async Task SendMessage(object arr)
        {
            var value = arr.ToString();

            await Clients.Client(Context.ConnectionId).SendAsync("ReturnMsg", value);
        }




    }
}
